<?php
include_once("../modules/checkA.php");
include_once("../../config.php");
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'member'");
?>


<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
include_once("detail-list-function.php");
?>




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php include ROOT_PATH_.'/controller/common/module/head.php'; ?>
    <?php include 'modules/head.php'; ?>
</head>

<body>





<?php



$_REQUEST['ai_applydate']=date(Y . '-' . m . '-' . d . ' ' . H . '-' . i . '-' . s);
$_REQUEST['ai_authur']=$_SESSION['username'];
$_REQUEST['ai_applystatus']="申请修改";

//修改数据的源数据id
$_REQUEST['ai_sid']=addslashes($_REQUEST['nid']);




//设置需要搜索的表格的前缀后缀
$table_Suffix = $plate['table_Suffix'];
$table = $table_Prefix . $table_Suffix;
//设置需要搜索的表格的前缀后缀


$sql=insert_date($table,$_REQUEST);




//加一道防御，如果缺少必要信息，就不能添加信息上去哦
if($_SESSION['username'])
{
    $query = mysql_query($sql) or die ($sql);

//如果从未收款变成已收款的话，需要在审核的时候才更改这个时候不能处理。
//if($_REQUEST['status']=="已收款")
//{
//$query2 = mysql_query($sql_finance) or die ('添加财务信息失败！');
//}

}
else
{
    echo "请登录后进行操作";
}

mysql_close($con);


?>

<!---->
<?//if($new_status=="已收款"){?>
<!--    <script type="text/javascript">-->
<!--        alert("输入信息已保存，点击确认打印收据.");-->
<!--        window.open("receipt.php?nav-itemed=member&nid=102');-->
<!--    </script>-->
<?//}else{?>
<script type="text/javascript">
    alert("输入信息已保存，点击确认返回继续操作.");
    document.location.href = "detail-list.php?nav-itemed=member";
</script>
<?//}?>
<!---->


</body>